import axios from './libs/axios.min';

import Vue from 'vue/dist/vue.esm';

import Swiper from './libs/swiper.min';

import '../css/swiper-3.4.2.min.css';

import '../css/index.css'

new Vue({
    el:'#app',
    data:{
        list:[]
    },
    created() {
        axios.get('/api/list').then((res)=>{
            console.log("res=====",res);
            this.list = res.data.Datas.FlowerList;
            this.$nextTick(function(){  //保证dom更新完成
                new Swiper('.swiper-container')
                console.log(this.$refs.wrpper.children)
            })
        })
    },
    mounted(){ //操作本来就有的dom
        
    }
})